package com.zhou.spring.test_001;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhouyanxiang
 * @create 2020-07-2020/7/13-15:53
 */
public class SpringStart {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext1.xml");
        Person person = (Person) ctx.getBean("person");
        person.setAge(26);
        person.setName("zhangsan");
        System.out.println(person.getAge());
        System.out.println(person.getName());
    }

}
